#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <stdlib.h>
using namespace std;
class tab {
private:
	char _a;
	int _b;
public:
	tab(char a , int b = 1);
	char* operator+(int b);
};
tab::tab(char a, int b)
	:_a(a)
	,_b(b)
{}
char* tab::operator+(int b){
	char* c = nullptr;
	c = (char*)malloc(sizeof(char) * b);
	char* s = c;
	for (int n = 0; n < b; n++)
	{
		*(s++) = _a;
	}
	return c;
}
int main()
{
	tab a('c', 10);
	cout << a + 20 << endl;
}
